package com.bblocks.common.anti_reptile.module;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>Project: bb-anti-reptile - RuleVO</p>
 * <p>描述：结果访问规则</p>
 *
 * @Author Zhao [125043150@qq.com]
 * @Date 2024/3/23 15:22
 * @Version 1.0
 * @since 8
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class RuleVO implements Serializable {
    /**
     * 规则类型：1=ip，2=user
     */
    private int type = 1;

    /**
     * 规则规则地址
     */
    private String url;

    /**
     * 平均qps
     */
    private Integer rateAvg;

    /**
     * 最大qps(原则用此值限速)
     */
    private Integer rateMax;
}
